<script>
    window.ui = {
        collect: new URL("{{ collect }}?v={{ version }}&lang={{ lang }}"),
        title: "{{ site.title }}",
        baseurl: "{{ site.baseurl }}",
        i18n: {
            search_results: "{{ __.search_results | default: 'Search Results' }}",
            search_results_found: "{{ __.search_results_found | default: 'Search finished, found # page(s) matching the search query.' }}",
            search_results_not_found: "{{ __.search_results_not_found | default: 'Your search did not match any documents, please make sure that all characters are spelled correctly!' }}"
        }
    };
</script>
<script src="{{ base }}/assets/js/jquery.min.js"></script>

{%- if custom_script.size > 0 -%}
    <script>{{ custom_script }}</script>
{%- endif -%}

<script src="{{ base }}/assets/js/theme{% if site.debug.dist != false %}.min{% endif %}.js"></script>
